/***************************************************************
 * This script demonstrates how to delete a folder structure.
 ****************************************************************/
import org.doofer.*

def params = [username: 'test', password: 'test', repository: 'test']
def path = '/test'

def doofer = new Doofer()
def su = doofer.getSessionUtil(params)
su.useSession { session ->
    new ObjectUtil().deltree(session: session, path: path)
}